public class Student3 {
//实例成员变量
private String name;
private String sex;
private int age;
private double score;
public Student3()
{
System.out.println("I am Student init()!");
}
//实例代码块
{
this.name = "bit";
this.age = 12;
this.sex = "man";
System.out.println("I am instance init()!");
}
public void show(){
System.out.println("name: "+name+" age: "+age+" sex: "+ sex);
}


public static void main(String[] args) {
Student3 stu = new Student3();
stu.show();
}
}